package org.jackysoft.entity;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;

import org.jackysoft.annotations.Form;
import org.jackysoft.annotations.FormEncType;
import org.jackysoft.entity.User;
import org.springframework.data.annotation.PersistenceConstructor;

@Entity
@org.hibernate.annotations.Entity(dynamicUpdate=true,dynamicInsert=true) 
@Form(id="PreparedSparePartForm",label="PreparedSparePart 编辑",enctype=FormEncType.NORMAL)
public class PreparedSparePart extends AbstractEquipment {
   
    /**
	 * 
	 */
	private static final long serialVersionUID = 1252749510383734026L;

	private Equipment host;
	private User notifior;
	private Date createDate;
	private String reason;
	
	@PersistenceConstructor
	public PreparedSparePart(){
		
	}

	
	@ManyToOne
	public Equipment getHost() {
		return host;
	}

	public void setHost(Equipment host) {
		this.host = host;
	}


	@ManyToOne
	public User getNotifior() {
		return notifior;
	}


	public void setNotifior(User notifior) {
		this.notifior = notifior;
	}


	public Date getCreateDate() {
		return createDate;
	}


	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}


	public String getReason() {
		return reason;
	}


	public void setReason(String reason) {
		this.reason = reason;
	}  
	
	


}